package com.mx.pcs.lawyers.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import servicemockimplementation.DocumentationMockServiceImplementation;

/**
 * The documentation that is handled into the company.
 * @author EdgarOlvera
 */
@Controller
//@RequestMapping(value="")
public class DocumentationController {

	/**
	 * Get the documentation query.
	 * @return The documentation list.
	 */
	@RequestMapping(value="/documentation/getList", method=RequestMethod.GET)
	public ModelAndView getQueryDocumentation() {
		DocumentationMockServiceImplementation mock = new DocumentationMockServiceImplementation();
		return new ModelAndView("documentationListView", "docList", mock.getQueryDocumentation());
	}
}
